package cn.xd.base.application.service.common;

import cn.xd.base.domain.bean.command.AddDictCommand;
import cn.xd.base.domain.bean.command.AddDictGroupCommand;
import cn.xd.base.domain.bean.command.UpdateDictCommand;
import cn.xd.base.domain.bean.command.UpdateDictGroupCommand;
import cn.xd.base.domain.bean.response.DictDTO;
import cn.xd.base.domain.bean.response.DictGroupDTO;

public interface DictAppService {
    DictGroupDTO addDictGroup(AddDictGroupCommand command, Long userId);

    DictDTO addDict(AddDictCommand command, Long userId);

    DictGroupDTO updateDictGroup(UpdateDictGroupCommand command, Long userId);

    DictDTO updateDict(UpdateDictCommand command, Long userId);

    void deleteDict(String dictCode);
}
